package com.liangtian.mdm.system.log.model;

import java.util.ArrayList;
import java.util.List;


public enum SysLogEnum {

    //操作类型常量
    XZ("1", "新增"),
    BJ("2", "编辑"),
    SC("3", "删除"),
    TJ("4", "提交"),
    SHTG("5", "通过"),
    SHBH("6", "驳回"),
    PD("7", "批量导入"),
    FZ("8", "复制"),
    QY("9", "启用"),
    TY("10", "停用"),
    DL("11", "登录"),
    BG("12", "变更"),
    GD("13", "归档"),
    FF("14", "分发"),

    //--表常量
    SYS_ORGANIZATION("SYS_ORGANIZATION", "机构"),
    SYS_PERMISSION("SYS_PERMISSION", "权限"),
    SYS_ROLE("SYS_ROLE", "角色"),
    SYS_UGROUP("SYS_UGROUP", "用户组"),
    SYS_USER("SYS_USER", "用户"),
    SYS_USER_ROLE("SYS_USER_ROLE", "角色用户"),
    SYS_PERMISSION_BUTTON("SYS_PERMISSION_BUTTON", "按钮权限"),
    SYS_UGROUP_ROLE("SYS_UGROUP_ROLE", "角色用户组"),
    SYS_UGROUP_USER("SYS_UGROUP_USER", "用户组用户"),
    SYS_UNIFORMSELECT("SYS_UNIFORMSELECT", "高级查询"),
    SYS_ROLE_MENU("SYS_ROLE_MENU", "角色资源关联"),
    SYS_DATA_PERMISSION("SYS_DATA_PERMISSION", "物料权限"),

    CODE_TYPE("CODE_TYPE", "代码体系"),

    WL_WL("WL_WL", "物料"),
    WL_LBMB("WL_LBMB", "物料模板"),
    WLBM_JLDW("WLBM_JLDW", "物料计量单位"),
    WLBM_LBJLDW("WLBM_LBJLDW", "物料类别计量单位"),
    WL_FH("WL_FH", "物料符号"),
    WL_LB("WL_LB", "物料类别"),
    WL_LBMB_TZL("WL_LBMB_TZL", "物料类别模板特征量"),
    WL_LBMB_TZLFH("WL_LBMB_TZLFH", "物料类别模板特征量符号"),
    WL_LBMB_TZLQZ("WL_LBMB_TZLQZ", "物料类别模板特征量取值"),
    WL_LBMB_TZLQZ_BM("WL_LBMB_TZLQZ_BM", "物料类别模板特征量取值别名"),
    WL_WL_FEILD("WL_WL_FEILD", "物料配置字段"),
    WL_WL_FIELD_SELECTVALUE("WL_WL_FIELD_SELECTVALUE", "物料配置字段下拉选项值");

    private String code;
    private String desc;
    private static List<String> operTypeList;
    private static List<String> wlTypeList;
    private static List<String> sysTypeList;


    public static List<String> getWlTypeList() {
        return wlTypeList;
    }

    public static void setWlTypeList(List<String> wlTypeList) {
        SysLogEnum.wlTypeList = wlTypeList;
    }

    public static List<String> getSysTypeList() {
        return sysTypeList;
    }

    public static void setSysTypeList(List<String> sysTypeList) {
        SysLogEnum.sysTypeList = sysTypeList;
    }

    public static List<String> getOperTypeList() {
        return operTypeList;
    }

    public static void setOperTypeList(List<String> operTypeList) {
        SysLogEnum.operTypeList = operTypeList;
    }

    private SysLogEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    static {
        operTypeList = new ArrayList<String>();
        wlTypeList = new ArrayList<String>();
        sysTypeList = new ArrayList<String>();
        operTypeList.add(SysLogEnum.XZ.getCode() + "@@" + SysLogEnum.XZ.getDesc());
        operTypeList.add(SysLogEnum.BJ.getCode() + "@@" + SysLogEnum.BJ.getDesc());
        operTypeList.add(SysLogEnum.SC.getCode() + "@@" + SysLogEnum.SC.getDesc());
        operTypeList.add(SysLogEnum.TJ.getCode() + "@@" + SysLogEnum.TJ.getDesc());
        operTypeList.add(SysLogEnum.SHTG.getCode() + "@@" + SysLogEnum.SHTG.getDesc());
        operTypeList.add(SysLogEnum.SHBH.getCode() + "@@" + SysLogEnum.SHBH.getDesc());
        operTypeList.add(SysLogEnum.PD.getCode() + "@@" + SysLogEnum.PD.getDesc());
        operTypeList.add(SysLogEnum.FZ.getCode() + "@@" + SysLogEnum.FZ.getDesc());
        operTypeList.add(SysLogEnum.QY.getCode() + "@@" + SysLogEnum.QY.getDesc());
        operTypeList.add(SysLogEnum.TY.getCode() + "@@" + SysLogEnum.TY.getDesc());
        operTypeList.add(SysLogEnum.DL.getCode() + "@@" + SysLogEnum.DL.getDesc());
        operTypeList.add(SysLogEnum.BG.getCode() + "@@" + SysLogEnum.BG.getDesc());
        operTypeList.add(SysLogEnum.GD.getCode() + "@@" + SysLogEnum.GD.getDesc());
        operTypeList.add(SysLogEnum.FF.getCode() + "@@" + SysLogEnum.FF.getDesc());


        wlTypeList.add(SysLogEnum.WL_WL.getCode() + "@@" + SysLogEnum.WL_WL.getDesc());
        wlTypeList.add(SysLogEnum.WL_LBMB.getCode() + "@@" + SysLogEnum.WL_LBMB.getDesc());
        wlTypeList.add(SysLogEnum.WLBM_JLDW.getCode() + "@@" + SysLogEnum.WLBM_JLDW.getDesc());
        wlTypeList.add(SysLogEnum.WLBM_LBJLDW.getCode() + "@@" + SysLogEnum.WLBM_LBJLDW.getDesc());
        wlTypeList.add(SysLogEnum.WL_FH.getCode() + "@@" + SysLogEnum.WL_FH.getDesc());
        wlTypeList.add(SysLogEnum.WL_LB.getCode() + "@@" + SysLogEnum.WL_LB.getDesc());
        wlTypeList.add(SysLogEnum.WL_LBMB_TZL.getCode() + "@@" + SysLogEnum.WL_LBMB_TZL.getDesc());
        wlTypeList.add(SysLogEnum.WL_LBMB_TZLFH.getCode() + "@@" + SysLogEnum.WL_LBMB_TZLFH.getDesc());
        wlTypeList.add(SysLogEnum.WL_LBMB_TZLQZ.getCode() + "@@" + SysLogEnum.WL_LBMB_TZLQZ.getDesc());
        wlTypeList.add(SysLogEnum.WL_LBMB_TZLQZ_BM.getCode() + "@@" + SysLogEnum.WL_LBMB_TZLQZ_BM.getDesc());
        wlTypeList.add(SysLogEnum.WL_WL_FEILD.getCode() + "@@" + SysLogEnum.WL_WL_FEILD.getDesc());
        wlTypeList.add(SysLogEnum.WL_WL_FIELD_SELECTVALUE.getCode() + "@@" + SysLogEnum.WL_WL_FIELD_SELECTVALUE.getDesc());

        sysTypeList.add(SysLogEnum.SYS_ORGANIZATION.getCode() + "@@" + SysLogEnum.SYS_ORGANIZATION.getDesc());
        sysTypeList.add(SysLogEnum.SYS_PERMISSION.getCode() + "@@" + SysLogEnum.SYS_PERMISSION.getDesc());
        sysTypeList.add(SysLogEnum.SYS_ROLE.getCode() + "@@" + SysLogEnum.SYS_ROLE.getDesc());
        sysTypeList.add(SysLogEnum.SYS_UGROUP.getCode() + "@@" + SysLogEnum.SYS_UGROUP.getDesc());
        sysTypeList.add(SysLogEnum.SYS_USER.getCode() + "@@" + SysLogEnum.SYS_USER.getDesc());
        sysTypeList.add(SysLogEnum.SYS_USER_ROLE.getCode() + "@@" + SysLogEnum.SYS_USER_ROLE.getDesc());
        sysTypeList.add(SysLogEnum.SYS_PERMISSION_BUTTON.getCode() + "@@" + SysLogEnum.SYS_PERMISSION_BUTTON.getDesc());
        sysTypeList.add(SysLogEnum.SYS_UGROUP_ROLE.getCode() + "@@" + SysLogEnum.SYS_UGROUP_ROLE.getDesc());
        sysTypeList.add(SysLogEnum.SYS_UGROUP_USER.getCode() + "@@" + SysLogEnum.SYS_UGROUP_USER.getDesc());
        sysTypeList.add(SysLogEnum.SYS_UNIFORMSELECT.getCode() + "@@" + SysLogEnum.SYS_UNIFORMSELECT.getDesc());
        sysTypeList.add(SysLogEnum.SYS_ROLE_MENU.getCode() + "@@" + SysLogEnum.SYS_ROLE_MENU.getDesc());
        sysTypeList.add(SysLogEnum.SYS_DATA_PERMISSION.getCode() + "@@" + SysLogEnum.SYS_DATA_PERMISSION.getDesc());
        sysTypeList.add(SysLogEnum.CODE_TYPE.getCode() + "@@" + SysLogEnum.CODE_TYPE.getDesc());


    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }


}
